package Month11.Day11;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Scanner;

public class T05Test {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("输入年份");
        int year=in.nextInt();
        Calendar calendar=Calendar.getInstance();
        calendar.set(year,5,1);
        calendar.add(Calendar.DAY_OF_WEEK,7-(calendar.get(Calendar.DAY_OF_WEEK))+1+14);
        System.out.println(new SimpleDateFormat("yyyy-MM-dd E").format(calendar.getTime()));

    }
}
